Improved handling of errors.

This improves the handling of runTheMatrix errors for the following cases:

- das_query produced spurious output which does not contain any filename in it.
- the command timed-out due to a prefixed timeout command expiring.