Fixed git.check() not working if there was no output.