Apply Andy's fixes to jenkins.sh
Apply Andy's fixes to jenkins.sh

Andy had a series of fixes to jenkins.sh that he did a couple of months
ago that haven't made it to playdoh, yet.

This applies the rest of them to our jenkins.sh.

lgp171188/fjord,hoosteeno/fjord,mozilla/fjord,mozilla/fjord,rlr/fjord,lgp171188/fjord,Ritsyy/fjord,lgp171188/fjord,hoosteeno/fjord,Ritsyy/fjord,rlr/fjord,Ritsyy/fjord,rlr/fjord,DESHRAJ/fjord,mozilla/fjord,Ritsyy/fjord,staranjeet/fjord,DESHRAJ/fjord,staranjeet/fjord,hoosteeno/fjord,rlr/fjord,lgp171188/fjord,staranjeet/fjord,DESHRAJ/fjord,staranjeet/fjord,hoosteeno/fjord,mozilla/fjord