markduplicates seems to work correctly now