Check for Windows properly on JRuby.