Bash needs \ for linebreaks.
Rotated logs are no longer compressed.

Also propagate errors to the calling process.
upgrade support and code merge