Removing empty directories in bundles after performing garbage collection

Signed-off-by: Gleb Golubitsky <sectoid@gnolltech.org>