Set the output directories.