Fix edge case in which a branch looks like a version.