improved process controller logic: previously set environment can now be overwritten by packages.

This operation is logged to aid debugging