Ensure empty directories are created

Directories were previously skipped so only created if a file was under
that path. Directories are now explicitly added even if they have no
files in them.