[CHEF-4200] Replace Array#keep_if with #select

Array#keep_if was introduced in Ruby 1.9; Array#select
is backwards compatible with 1.8