Use setdefault for os.environ environment update