Implement EZP-21851: support packaged settings for LS

This should apply cleanly on top of https://github.com/ezsystems/ezpublish-legacy-installer/pull/7