Fix environment variable communication