Added mac-os checking