Update environment on exec.