Unwanted creation of empty directories bug fixed.
Merge pull request #5 from yorch/master

Unwanted creation of empty directories bug fixed.