base: build.js improvement

* Reuse settings.js configuration to avoid redundancy.

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