msi: Correct the setting of environment variables.