fixed OSX grep problem