Changed Java version check to groovy -version output
The travis Box seems to have multiple JVM versions in the path? however...