Update the OS checking during java install