find the port id in a better manner

This should fix issue #143.  I've tested it on my neutron setup.