[find-duplicates] extended script to handle more work