OSX will happily do the same line-clear trick

The "darwin" platform is too wide a test. OSX 10.8 works just fine; if this code has to target older versions of OSX, a check that does not involve `process.platform` should be used.