Fixed check for installation of git

Forgot to revert this when testing to make sure the which command would return
1 if command not found in $PATH.