utils: Fix virt state detection

Change-Id: I24ca3d7b2013ae9ff312c4d5c2107eaf7f931de0
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1127648
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>