Make starting over actually work. Even when files disappear or such or when the path has/has no trailing slash.
Write results to disk peridically to prevent data loss in case of problems.