Fix builing the plugin in Jenkins' Buildhive environement

Fix taken from:
https://github.com/jenkinsci/testflight-plugin/commit/04b1ab8cc6d75cc634
e810dc72bacc50c518b09c