Leverage java_home command to help FindJava and FindJNI modules on Mac

- See [issue #14689](http://www.cmake.org/Bug/view.php?id=14689) for full description
- Also includes related patch from [issue #14508](http://www.cmake.org/Bug/view.php?id=14508)