Fixed a bug where git or hg-based packages with a package-metadata.json file in them would be treated as non-VCS packages when looking for upgrades