Fix win32 cmd for retrieving phantom port