libvirt.test: Fix bugs in macvtap test
1.Fix the way to edit the file on remote
2.Remove unnecessary session creation

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
Merge pull request #188 from liyangfnst/macvtap_fix

libvirt.test: Fix bugs in macvtap test