ensure correct reference is passed to markduplicates command