add prefix support for file_list and dir_list