respect order of plugin dirs when loading pllugins and rebuilding registry

Original commit message from CVS:
respect order of plugin dirs when loading pllugins and rebuilding registry
3 files changed