new java versions in osx have different java.home - fix autodetection