This should be named ``output_dir`` for consistency with the name of the input parameter.