char* path = getenv("PATH");

//...

fprintf(stderr, "A required executable file could not be found.  " \
                "Please ensure that the software has been installed " \
                "correctly or contact a system administrator.\n");