t/runtests: Replace some qx() calls with safe_qx

Signed-off-by: Niels Thykier <niels@thykier.net>