adapted pattern to find directories

added/modified tests
Merge pull request #81 from manne/dir_pattern

adapted pattern to find directories