Prscript update v1.1

This is an update to the prscript. It fixes problem with PR containing more than 30 patches and it fixes the build submitting which was broken following the buildbot upgrade.