fix checking git command existence