Fixed isWindows method.