Make git-revision more bulletproof