fix up log folder logic