Chef::Platform#windows? uses:

```
if RUBY_PLATFORM =~ /mswin|mingw|windows/
```

I presume you think ENV['OS'] is better than RUBY_PLATFORM and Config::CONFIG['host_os']?