More robust check. Also should be jdk9-proof (to the extent that
it will first check that it is jdk8 before checking the build number)