Correction to exit code logic

In commit dbbd78e236363a4784c4f05a5f4145b5602789dd
logic was added that, at least on some systems, lost flags needed
to distinguish between exit on signal and exit status code. This
resulted in test 7.13 failing on Ubuntu 13.04