Adds optional rewrite rules for imports