* JENKINS-62006 Check if agent before master, fix remoting classloading error * Use JenkinsJVM API
mentioned in commit 28d92a40