Refactored removal of old settings file when importing a site.