fix for windows
change the way to detect windows