Added ability to setup pluginsDir property as array