Fix java 8 version check

The Java 8 version check in the bash-template does not currently work. There are two issues:
 - Typo in the guard name: `no_java_version_check` instead of `no_version_check`
 - Assumes `$java_version` is a global variable but that is not currently exported by `java_version_check`, at least when running under bash 3.2.51(1)-release on OS X Mavericks