Fix up several bugs in core route setup and vm veth setup scripts.