move check for configured program base directory to appropriate function