Adding code to backup and rebuild settings.php in the rebuild.sh script.