Newlines in output and output redirection of NXT