Fix grep syntax so that the output to the shell is correct