Revert "Trying to install a package with an empty directory caused a modification parse error (fixes #2929)"
Revert "Trying to install a package with an empty directory caused a modification parse error (fixes #2929)"

This reverts commit e1fb2cede2e6e671010abe0bde8b064ccec93956.

StealthWombat/SMF2.1-more-forkery,StealthWombat/SMF2.1-more-forkery,margarett/SMF2.1,MustafaCan/SMF2.1,georaldc/SMF2.1,MustafaCan/SMF2.1,margarett/SMF2.1,georaldc/SMF2.1