create outputDir if it doesn't exist