Added mode change for settings.php if it already exists