remove file:/// from directory name in a different place to avoid conflict with other uses of outputDir