adapting building.js to the new behavior of config.paths object