I made a patch to fix this. I also notice that the version part of the regex can be improved because it does not take `version-regexp-alist' into consideration. But that is out of the scope of this bug.