Fix pathing issue for grep on SmartOS/Solaris