Make sure that a non-empty linear tree ends w/ \n

Bash subprocess output eats trailing whitespace.