Modify Rakefile to work with Ruby 1.9+

the Rakefile is not working with 1.9.3p327

This fix allows it to work with Ruby 1.9.