Add forgotten checks to upload.sh.