Rework error checks, provision for lack of settings.php