Added env global variable to scripting engine.