Fix issues with travis-upload.sh