[PATCH] Makefile.in: Only set git version if .git directory exists