on mac if java home is set use it

My mac has java 1.6, 1.7, and 1.8.  On my mac java_home command always picks java 1.8 (which the JSP code doesnt like), but my java home points to 1.7.  This patch is to make it so when on mac, if java home is set, it will keep it vs checking the java_home command.