Prevent continuous addition of output file when using wildcards