allow unsetting 'environment' with 'undef'