changed java version compare
wrong variable name for ccache dir
corrected order for std redirection