Keep exit status on non-PTY.check path
Merge pull request #51 from domcleal/exit-status

Keep exit status on non-PTY.check path