- Renamed flist_dir to pathname to avoid confusion with dir_flist var.