Fix UpdateVersionInfo.sh when current commit is also a tag