Rely on grep when ag if unavailable