fixed issue with log rotation and backup cleanup