update run_with_env for modules 3.2.10