fix missing environment pass from upload to build