Fix #4073, the versions, if from git, can be compared without

the git hash component