use C++ for PortManager::make_port_name_relative()