Detect JAVA_HOME on OS X