Produce input/output directories if they do not exist