Fix to cat option that strips off new line char from output. Bug #3670