Let check return nonzero exit status on failure (fixes #198)
Merge pull request #230 from ddfreyne/bug-check-exit-status

Let check return nonzero exit status on failure