Fixed output folder creation.