Rename proc_edir to proc_set, and proc_dir_a to scan_dir