Fixing the envJson handling so that each iteration gets a fresh set of environment variables. The code that was here before would not do that, though it looked like it was trying.