isunix evaluates to true on a mac, so change order in which OS is checked