Throw more explicit exceptions in guestutils

Signed-off-by: Maxime Petazzoni <max@signalfuse.com>