"/dev/null" is not available on Windows7.

unfortunately many other tests fail on windows(36 of them) but
without this patch the tests do not run at all.

the logger is set to a value of nil if /dev/null does not exist
on the filesystem, which is likely to be Windows.