Make pyi_importers store sys.prefix locally

Make pyi_importers store sys.prefix locally.

Otherwise, they may fail if sys.prefix is changed.
Plus, this makes possible to call pyi_importers with a temporarily changed sys.prefix to point to another temporary directory.