Rewrite import paths