Don't check if the program exists in shell mode

Don't check if the program exists in shell mode, because the shell can find things that are not in the current working directory, or it can use its built-in primitives.