config.js is read each run, improve error checking