There's also `ENV['OS']` which should contain `Windows_NT` for all recent Windows versions, but I couldn't find documentation for that.