Remove newline at the end of head/tail/more outputs (fixes bug #453)