Fix for bad variable scope in vmware driver