Fix upload tool since github now requires user agent header.
Fixup regular expression for pub related warnings on package upload.