Fix is_win-function for OS X