Remove reliance on grep.

* This prevents issues with user grep configuration..