To simplify, I suggest just making the ``output_dir`` a required option. We did this type of thing a lot early on in QIIME, but I now prefer just forcing the user to tell us where to store the output file. This type of thing has gotten us into trouble when the directory containing the input files isn't writable.