Generalize findDatedPaths in PathUtils and debug ExportJob