bug fix: incorrectly obtaining the JVMPath. added a few checks and if all fails use the default method