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