Ensure modules directory is loaded and modules are loaded. If not it's an error and we quit.
Fixes all known undefined index warnings in index.php.