auto detect java_home at macosx