fixed pathvariables to work from wherever the imaproxy.js app is started