Bug fix: mkdir_p on log folder during log rotation.