Eliminate duplicate QEMU launcher code

Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>