gitsh: Mountain Lion compatibility fixes

Details here: https://github.com/thoughtbot/gitsh/commit/4fd3027