added java_home detection method from setup.py for macosx > 10.5