fixed bug when pathway_lists dir contains subdirectories (for future use)