jmx agent path is set as a sensor to work across versions

also deprecate a needless inner class (but keep it around for rebinding)
Worth a note that we are keeping it just for the anonymous class.