configure: don't generate a git version number if .git isn't present