Update upload script to match upstream changes