[PATCH 1/4] scripts/run-qemu.sh: better error checks & formatting