Improve error reporting when modules in dependency chains are not found.