regression tests: Properly handle adnshost et al exit status