> Should mydir be in this line?
What do you mean ?

> Should we load contrib first (so that the github versions of plugins are loaded for testing if there are similar plugins in the user's plugin directory?

I didn't check order of loading when plugins of the same name are available, i thought last occurence was replacing previous ones. I will check more carefullly.