Made PageUtil::addVar() work with using `@MyModule/...` paths, closes #2132, closes #1431.
Merge pull request #2135 from cmfcmf/resource-loading-2

Made PageUtil::addVar() work with using `@MyModule/...` paths