test-unix-domain-socket.js: test reverted to previous version, added if-clause in the beginning

Reverted the test to the previous behaviour and added an IF-Clause in the beginning that skips the test if ```windir``` is set.