Match against a branch even if it's a semver version/range that does not exist, fixes #771.

#771