fix for filtering unwanted directories

* extracted subdir filter option to a function and add a failing test
* addd a fix for filtering unwanted dirs
replace a list with dirs with new content
Merge pull request #86 from prmtl/1.x-maintenance-fixed-hidden-dirs

fix for filtering unwanted directories