Update the jenkins notification script

The old one has stopped working for some reason. It fails with

  jenkins-notify error: SyntaxError: Unexpected token a. Data: [object Object]

when sent a notification by Jenkins.