Fix exporting environment variables.