Handle pruning old format logs, Fixes #2265
Merge pull request #2343 from jakewins/1.9-prune-oldlogs

Handle pruning old format logs, Fixes #2265