Distinguish between linux and macos.