Fixed absolute dir bug and added a check for mdx_outline