Added some more errormessages for plugin authors

The way the path to the plugin directories was generated was not the
best one so I modified it and made easier to understand.