build: Limit auto-versioning to git revision hash