fix AttachMain learn from jconsole.
fix bug. ${java.home} include '${java.home}/jre'.