Check for git before trying to use it - avoids ugly and unclear error message