libvirt.virsh_change_media: Fix a ShellCmdError bug and add env recover to 'try finally'

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
Merge pull request #8 from autotest/1286

libvirt.virsh_change_media: Fix a ShellCmdError bug and add env recover ...