Get stderr on non-zero exits + test

Fixes #9