Minor refactor of PR #233
Minor refactor of PR #233

OS won't change mid-execution, so lets avoid the unnecessary
check each time `unixFilter` is run.

beni55/hakyll,Minoru/hakyll,Javran/hakyll,d12frosted/hakyll,oldmanmike/hakyll