Take into account fs.stat errors when retrieving a file list