Added Brett Wooldridge improvement for detecting JDK_HOME on OSX