Fix typeo when calling os.environ in the sys.platform=='darwin' case.