Ensure that CodeDom generated temporary directory is always created. Fixes #12202