Actually process the -R option in process_duplicate_set().

-R wouldn't actually work because it was missing from an if expression.