Add option to exclude files or directories from a file

This add an option to exclude files or directories from a given a file, in addition of previous exclude system.
Quickly tested on Mac Os.
Also, a bug fix in tree_list (minor dyslexia problem ;)).