Improved version of common.sh.

Now packets are not sent out of the port the came in.
Also can work for vms that are on more than one ovs