fix JVM discovery on OSX