findProgram function

Locates a program in the PATH environment variable