Look up JAVA_HOME for MacOS.
Make sure dest dir exists.