Make ncat-test.pl work on both Windows and *nix without modification;
feel free to revert it if you believe it needs some discussion first.
(I find it useful when working from both VM and Linux on a shared
directory)