Fixed issues with invalid directories and files

The tool now safely skips invalid and/or malformatted directories
and files with bad dates and/or filename formats. The tool prints
warnings when bad paths are found, and prevents them from entering
the enumeration cycle.