Added enviroment dictionary with global vairables to xmds run as nstask