FORGE-1596: fix JVM discovery on OSX