=pro Grab binary version for MIMA combatibility testing from a setting (for validation)

Thanks to @jsuereth

Forward port of #16137 to master for validation.