Fix Mac detection. 'Darwin' not 'darwin'.