Better OS detection

Let specs succeed for travis.ci builds, even though they're not running
on OSX