[upload] fix error when uploading less than 4 files
[Generating dist files]