Add support for building virt-viewer

Reviewed by: Swapna Krishnan <skrishna@redhat.com>
If there is a ShellCmdError, output will not defined at all. So maybe you should use this for record the error msg:
except ShellCmdError, err:
   ......... err.output...