This diff converts the build-configurations.sh script to python, and
make it read the build configuration from a json file. For now it is
limited to running the script and forwarding the error code.
This configuration file will later allow to add more features.
The bash script is kept as a dummy wrapper to keep compatibility with
existing infra.