Make runtest more resilient to setup problems