fix path and support legoSdk upload logic