Fix unrequested empty directories in default mode.