compensated for the differing locations of grep