Add check for OS - this gives errors on Mac as-is