Ruby 1.8 fix for Hash#select