Make it possible to load extensions from relative paths in a sane way. Also show in error messages where extensions would have been loaded from. Inspired by the need to register a custom extension (external.py) in clones of the NetBeans repository, where it is undesirable to register the extension globally.