The path to config.json (and all the other .json files) can be found in app.js
If you really do need to change adapt from using relative to absolute paths then you're going to have to change more than just main.html as these paths are scattered everywhere.
Perhaps it might be better to take a different approach, maybe trying a <base> tag for example?