Improved how the program_directory is found.