allow connecting via pid with jdk6 as well as command pattern