Detect duplicate files in directories