Fixes #35 for log rotation.