Issue 1059: Fix the -n option when VariantDir(duplicate=1) is used