Fix grep bug that breaks grep by passing unknown options to legacy grep versions