Fixing the folder environment logic to actually work. Assigning objects in JavaScript is by reference, not by value, so I'm using JSON.stringify/parse to make a copy of the envjson object.