Make threading mode default for the jenkins script
Make the jenkins script a bit more defensive