Fix the module's path when reporting EC errors

It wouldn't report properly namespaced modules.