[Core] Add a way to override the config directory for MD

This allows us to redefine the directory where we store the
mono-addins addin cache.