Don't spit errors on windows

The stderr redirection to `/dev/null` makes windows emit errors on every
single facter/puppet run. This simply redirects to `nul` instead when
running on windows family.