Keep exit status on non-PTY.check path