Fix environment variables for Mac.