A few fixes to the VIF scripts

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Merge pull request #3 from jonludlam/vif-fix

A few fixes to the VIF scripts