Upload script fix and added app name support