Adjust repack.sh to latest upstream