Fix runGit throwing an exception when git is not installed or returns a non-zero exit code.