Add some handy variables and try to set JAVA_HOME on Mac