Fixed empty directory exclusion