Stub windows detection in directory spec.
Stub windows platform detection in spec tests
Add missing stubs for File.directory?("/tmp")
Make tests unix_only where the stubs don't work on windows.

Functionality is covered by functional tests, so we have test coverage
to fall back on until the unit tests are fixed.
Merge branch 'fix-reporting-tests-windows'