Patched to work with Ruby 2.0

- Fixed deprecated warnings
- Set encoding of strings to be ASCII since Ruby 2.0 defaults to UTF-8
- Fixed test for OSX version of git