Revert "Revert "fixed program filepath to work with config file""

This reverts commit a47696535419f581f2990b4ab13ff325a11ff8ea.