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.

Rework of #15 on top of ruby-1.8-compat, again specifically to support AWS OpsWorks (re: #9)