Fix coverage generation on Ruby 1.9

Should still keep coverage for Ruby 1.8.x as well.

Sadly, I couldn't test that here since I don't have a machine with an OS old enough to still have 1.8.x