Fix usage of "grep" for Ruby 1.9