make: check if git is available before calculate version