Don't open the output file twice in markduplicates