Fixed adding empty directories

It was only adding top level empty directories, fixed to add recursively