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>