Generally the reason I would put this up here is because utils.js is untestable in its current state. 
Moving things out of utils.js is easier, because you can easily formulate tests for parsing the config file, and verify the result is expected. 
Probably need to checkout the Makefile and see how many environment variables are populated in order to have utils.js run, and then since it has multiple uses, it is quite difficult to test.