lib/package_config_files.c: simplify.
tests/xbps/xbps-rindex: explicitly set rootdir to unbreak tests.
Make system/config repo.d paths always relative to rootdir.