change the way loading modules is done

To make the loadedplugins variable portable, the keys to the
dictionary were changed to the short module path instead of
the full module path. This required changing several functions
in the code to handle the short module path when loading
plugins.