Restore Ruby 1.8 compatibility

It would be nice to have this run on 1.8 again because lots of Linux distributions still have a default Ruby of 1.8.