added a check for the git executable