base: build.js improvement

* Reuses `settings.js` configuration to avoid redundancy.

Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>