filter out filename which contain hidden dirs

assuming hidden dirs start with ".", like ".svn"
add test for hidden folders

actually this test should never be executed and else will always fail.
add newline to test
argh, deleted accidently added file
Merge pull request #153 from lipp/filter-hidden-dirs

filter out filename which contain hidden dirs