Refactor build-multi.sh to use an external configuration

This avoids churn when new distros are added

Change-Id: I5f1aa9f364c7393abdbdd6f4ea8bfd32f6b28ccb