Creating output directories if needed...