Found where I'd double negated the port number when checking for patches - both in the followPathToEndPoint function and in the export_port_connections.php file.  Removed the one from export_port_connections.php since the class method may be used elsewhere.

Fixed #518