improved grep
improved for rubymotion