Fixed a bug in upload.bat