compile schema BUGFIX uses augment resolution module

pmod must be the module where the augment was defined,
not the module being compiled (cur_mod).
diff --git a/src/schema_compile.c b/src/schema_compile.c
index 51ea049..a02519c 100644
--- a/src/schema_compile.c
+++ b/src/schema_compile.c
@@ -1474,7 +1474,7 @@
         lysc_update_path(ctx, NULL, "{augment}");
         lysc_update_path(ctx, NULL, aug->nodeid->expr);
         LOGVAL(ctx->ctx, LYVE_REFERENCE, "Augment target node \"%s\" from module \"%s\" was not found.",
-                aug->nodeid->expr, LYSP_MODULE_NAME(aug->nodeid_pmod));
+                aug->nodeid->expr, LYSP_MODULE_NAME(aug->aug_pmod));
         lysc_update_path(ctx, NULL, NULL);
         lysc_update_path(ctx, NULL, NULL);
     }