Fix checking for Windows on OS X (Darwin)

Checking for 'win' substring was failing on 'darwin'.