proper deletion of empty directories