(init_environment): Perform the processing of environment variables on a copy