XWIKI-10361: Make xwiki.cfg accessible without XWiki instance
* fix tests