Support creating output directories.