Test for Windows correctly on JRuby.