fixed output folder creation, now throws error when attempting to overwrite directory