Update java check in StartupOptions::GetJvm() to work with java9
Update java check in StartupOptions::GetJvm() to work with java9

If you have java 9 installed but JAVA_HOME is set to java 8 then some bazel tests will fail because the check for java cannot find rt.jar which no longer exists in java 9.

e.g.
on OSX 10.13
```
> java -version
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)

> JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home bazel test //src/test/py/bazel:action_temp_test
```
will fail with the following
```
FAIL: testLinuxOrDarwinSandboxedBuildAction (__main__.ActionTempTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/private/var/tmp/_bazel_cheister/08d5287ffe0da9d62c01970651a9400e/bazel-sandbox/7165594205799114739/execroot/io_bazel/bazel-out/local-fastbuild/bin/src/test/py/bazel/action_temp_test.runfiles/io_bazel/src/test/py/bazel/action_temp_test.py", line 30, in testLinuxOrDarwinSandboxedBuildAction
    self.AssertTempEnvvarWithSpawnStrategy('sandboxed')
  File "/private/var/tmp/_bazel_cheister/08d5287ffe0da9d62c01970651a9400e/bazel-sandbox/7165594205799114739/execroot/io_bazel/bazel-out/local-fastbuild/bin/src/test/py/bazel/action_temp_test.runfiles/io_bazel/src/test/py/bazel/action_temp_test.py", line 39, in AssertTempEnvvarWithSpawnStrategy
    strategies = self._SpawnStrategies()
  File "/private/var/tmp/_bazel_cheister/08d5287ffe0da9d62c01970651a9400e/bazel-sandbox/7165594205799114739/execroot/io_bazel/bazel-out/local-fastbuild/bin/src/test/py/bazel/action_temp_test.runfiles/io_bazel/src/test/py/bazel/action_temp_test.py", line 124, in _SpawnStrategies
    self.AssertExitCode(exit_code, 2, stderr)
  File "/private/var/tmp/_bazel_cheister/08d5287ffe0da9d62c01970651a9400e/bazel-sandbox/7165594205799114739/execroot/io_bazel/bazel-out/local-fastbuild/bin/src/test/py/bazel/action_temp_test.runfiles/io_bazel/src/test/py/bazel/test_base.py", line 68, in AssertExitCode
    '(end stderr)------------------------------------------',
AssertionError: Bazel exited with 1 (expected 2), stderr:
(start stderr)----------------------------------------
INFO: $TEST_TMPDIR defined: output root default is '/private/var/tmp/_bazel_cheister/08d5287ffe0da9d62c01970651a9400e/bazel-sandbox/7165594205799114739/execroot/io_bazel/_tmp/30efe0ec7addffc49fb72b5d5aa45572' and max_idle_secs default is '15'.
Extracting Bazel installation...
Problem with java installation: couldn't find/access rt.jar in /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home
(end stderr)------------------------------------------
```

This is related to https://github.com/bazelbuild/bazel/issues/428 but really only fixes the case where you are still using java8 but happen to have java9 installed.

Closes #4045.

PiperOrigin-RevId: 175513188

akira-baruah/bazel,akira-baruah/bazel,bazelbuild/bazel,safarmer/bazel,dslomov/bazel,aehlig/bazel,bazelbuild/bazel,katre/bazel,akira-baruah/bazel,werkt/bazel,dslomov/bazel-windows,perezd/bazel,twitter-forks/bazel,bazelbuild/bazel,meteorcloudy/bazel,aehlig/bazel,dslomov/bazel,ulfjack/bazel,katre/bazel,twitter-forks/bazel,ButterflyNetwork/bazel,bazelbuild/bazel,aehlig/bazel,akira-baruah/bazel,davidzchen/bazel,werkt/bazel,dslomov/bazel-windows,dropbox/bazel,perezd/bazel,katre/bazel,dslomov/bazel-windows,davidzchen/bazel,cushon/bazel,werkt/bazel,perezd/bazel,perezd/bazel,katre/bazel,perezd/bazel,dslomov/bazel-windows,ButterflyNetwork/bazel,werkt/bazel,ButterflyNetwork/bazel,dropbox/bazel,ButterflyNetwork/bazel,davidzchen/bazel,cushon/bazel,twitter-forks/bazel,dslomov/bazel,werkt/bazel,meteorcloudy/bazel,davidzchen/bazel,davidzchen/bazel,twitter-forks/bazel,akira-baruah/bazel,twitter-forks/bazel,bazelbuild/bazel,safarmer/bazel,davidzchen/bazel,ButterflyNetwork/bazel,bazelbuild/bazel,ButterflyNetwork/bazel,cushon/bazel,dropbox/bazel,meteorcloudy/bazel,dropbox/bazel,dslomov/bazel,davidzchen/bazel,meteorcloudy/bazel,dslomov/bazel,perezd/bazel,meteorcloudy/bazel,twitter-forks/bazel,ulfjack/bazel,dropbox/bazel,cushon/bazel,meteorcloudy/bazel,safarmer/bazel,perezd/bazel,safarmer/bazel,katre/bazel,twitter-forks/bazel,dropbox/bazel,katre/bazel,safarmer/bazel,dslomov/bazel,ulfjack/bazel,ulfjack/bazel,cushon/bazel,ulfjack/bazel,meteorcloudy/bazel,dslomov/bazel-windows,cushon/bazel,safarmer/bazel,ulfjack/bazel,dslomov/bazel-windows,aehlig/bazel,aehlig/bazel,aehlig/bazel,werkt/bazel,ulfjack/bazel,akira-baruah/bazel,dslomov/bazel,aehlig/bazel