Store main path of module

This is the key in Module._cache
Add initial cache of resource path module