Fix breaking error

Prior to this commit, the plugin did not work on slaves and there was a problem with the reports being changed by Jenkins. These commits fix these problems.