Why not using the new rt Process and prepare a copy of the current env plus/minus the given env vars? Modifying the current env is a bit weird no?