Update build.sh

Adapted for the new config.sh