LocationTest: add windows defensive check

For creating hidden files, a "." filename prefix works on osx and unix.
Windows requires an exec "attrib +h" call, which fails on non-windows
OSes.

Added an OS check before making the exec call.