Revert "use the 'canonical' way to find JAVA_HOME on MacOS."
Revert "use the 'canonical' way to find JAVA_HOME on MacOS."

This reverts my commit f936362120fcce5b9785851f304c95e3dc0ce9ed.
As it turned out, this was actually breaking the MacOS Build

JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core