Fixed exporting of environment variables. No more duplicate paths.