replace regexp with `Gem.win_platform?`

While Gem.win_platform? needs Ruby >=1.9.3, dropping support for 1.8
shouldn't be a problem at this point.