Added OS detection for the java installer