Mac OS X - way of getting JAVA_HOME location 

Based on [man page](https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/java_home.1.html)