improved java.home detection to better find jdk