better jvm paths detection