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.
Merge pull request #16 from jmoses/ruby-1.8-compat

Update default rule processing for ruby 1.8