Fixed bug on OS X 10.9 (Ruby 2.0)

I believe this addresses issue #116. Just tested a couple of sites and worked fine with ruby 2.0.0p353