- Made the 'exclude_dir_names' argument check the directory base name.