Select masquerade by outgoing interface rather than by destination subne...

Fixes dotcloud/docker#6370