Move the inc/config.default.php file renaming to a separate function