[PATCH] log_cleaner: Detect rotated filenames properly