Build: configure: detect git existence correctly
The previous code checked whether $GIT was executable, but GIT was set with
"false" as a fallback, so it would always be executable.
Also, if we're going to bother detecting git, use GIT in Makefiles.