Fix for compileMarkdownFile() when creating output directory.