Minor refactor of PR #233

OS won't change mid-execution, so lets avoid the unnecessary
check each time `unixFilter` is run.
Merge pull request #247 from blaenk/static-windows-check

Minor refactor of PR #233