Use shell.resolveProgram for programs.