Merge pull request #4 from stefanholek/master

Windows support + brush-up
avoid optimization which omits directories which have no files in them which are parents of (only) other directories
Merge pull request #5 from mcdonc/master

Fix missing directories issue.
Restore directory optimzation.