[CHEF-5174] Added two lines so changes in the environment variables are can be used in the same chef-run that sets them

These two lines add or remove environment variables from the Ruby ENV object, so that right after setting the new variables you can use them in later steps in the same chef run. Without these lines you need a
second chef run if preceding steps depend on the newly added variables.