I would use `dpkg -s openvswitch-common | awk '{print $2}` instead.

If we are using the path to locate dpkg, we can probably be the same for sed and awk.