Init file for Debian and friends now makes the required directories itself.
Fixed core config functionality.

The core config functionality depended on a deprecated package. We
migrated to another, better maintained package and ported the code
over.