fix port parsing failure test to run on *nix