Add "delete empty directory" functionality