Fix propagation of env when building addons (for using extra in desktop app)