A few fixes to the VIF scripts

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>