Only apply patch for Ruby 1.8, not 1.9 or 2.0