Bugfix for the removal of empty sub-directories.