Ruby 185 compatibility

Adds patches to the String class to support Ruby < 1.8.7

Flattens one array in the Disk collector to support Ruby 1.8.5