[config] Also put pluginDirectory in our global settings array.
(cherry picked from commit c68a8495af03c00476951080d58c77fb7d3d125a)