Fix npm repo error for unnormalized shorthand urls

New npm versions are supporting the shorthand username/repo
in the repository field of the package.json - but sometimes
people with old npm versions are publishing them and they
do not get normalized.

Fixes #3952