check is windows instead of linux to support mac

switch the conditional, so mac os will be treated as linux.

couldn't test it though