fixed detection of windows platform