Makefile: don't use git short hash in version number if not within a git repo