Add the temp dir and output dir