Thanks Christian,
The problem was solved for now processing the relative path before calling eval function.
Placing modules in one single repo (RESTXQPATH), defined in the web.xml of BaseX, unfortunately is not an option in this case, because there will be more small separate applications and each has its module library included.
Regards, Ioan