add option to exclude files or directories from a file and bug fix in tree_list