BUGFIX: create outputDir if it is not yet there