ADDED: Java version detection for OSX