loader: add fallback to module path for dependencies of a module