Rewriting internal import paths