fix the upload script to build stuff