Slight improvements to initPluginsPath() [ci skip].