Fix the build: properly detect the BUILD OS version of Java, not the host one.

This matters when building Windows under Linux.

Change-Id: I1eaa4eeda4df359313f16d52605a1b8298765269
1 file changed