Add allow_dir_overwrite & allow_file_overwrite to WriteTestVariants