Fix cross-platform issue with grep location