Display additional information on settings error (ie original cause) config/settings.py

I've used the occasion to include other small fixes.