Closes-Bug: #1349796

'virsh cpu-stats' command is not available on Ubuntu. Instead use 'virsh dominfo' to fetch cpu time as this command is available on both Ubuntu and Centos. Also fix command to fetch pid so that it works on both centos and ubuntu.
Change-Id: I05f4b70a8621a90dd8899cdcf26205ff28f17b5d
(cherry picked from commit d8bf29f65b4627c1e5724d39a4001de0038f9530)
Merge "Closes-Bug: #1349796" into R1.10