Updated program_paths to work with regexes.