Fix incorrect git command when getting the version with an exact tag.