Merge pull request #3 from nbartos/logs

Be more flexible, support new infrastructure.
Bash needs \ for linebreaks.
Merge pull request #4 from nbartos/logs

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

Also propagate errors to the calling process.
Merge pull request #7 from nbartos/logs

Rotated logs are no longer compressed.
upgrade support and code merge