Fix runGit throwing exception when git isn't installed or returns non-zero exit code