Improved dependencies management on returnExports.js and returnExportsGlobal.js