[addons] respect type information for addons with no extension

fixme was fixed in 8d99ec72b6a
[python] only add modules listed as dependecy to path
Merge pull request #5201 from tamland/addon-deps-loading2

[python] only add modules listed as dependecy to path