globalenv: fix inverted import_env usage