Flush rewrite rules after migrating settings to cloned site

See #1054