Makes sure that output dir is always present