Fix upload-script

There was a cleanup in c987691986c1b6245cc0c2523f1432b580c888e7 which breaks the upload script.
Merge pull request #2 from mathiasschopmans/master

Fix upload-script