Make pyi_importers store sys.prefix locally

Otherwise, they may fail if sys.prefix is changed.
Additionally, this makes possible to call pyi_importers.install() with a
temporarily changed sys.prefix to point to another temporary directory.