Fix for empty dirs
Merge pull request #1 from brahle/master

Fix for empty dirs