validating that outputDir is not falsy