fix for baseDir when using outDir option