Update default rule processing for ruby 1.8

In Ruby 1.8, Hash#select returns an array of [key, value] pairs, in Ruby
1.9+ it returns a Hash.