Parse large remote responses correctly

When response comes from remote pinto server it doesn't nessesarily have to
be split by new lines. Original code didn't expect that and inserver newlines
in odd places for commands that returned large responses (like 'list').

This patch fixes this behaviour.