configure and build command: fix the stop iteration semantics
configure and build command: fix the stop iteration semantics

- broke somewhere between bdf48322696290d4e3d00ed12b7c7fe6ca213478 (#2810) and 17b13b161b3ddcd691ea7ed90165cfab6dec3950
iulian787/spack,matthiasdiener/spack,lgarren/spack,lgarren/spack,skosukhin/spack,EmreAtes/spack,lgarren/spack,LLNL/spack,mfherbst/spack,TheTimmy/spack,EmreAtes/spack,tmerrick1/spack,krafczyk/spack,mfherbst/spack,skosukhin/spack,TheTimmy/spack,skosukhin/spack,krafczyk/spack,iulian787/spack,matthiasdiener/spack,krafczyk/spack,TheTimmy/spack,krafczyk/spack,LLNL/spack,LLNL/spack,mfherbst/spack,tmerrick1/spack,EmreAtes/spack,TheTimmy/spack,tmerrick1/spack,matthiasdiener/spack,tmerrick1/spack,krafczyk/spack,mfherbst/spack,matthiasdiener/spack,LLNL/spack,matthiasdiener/spack,lgarren/spack,iulian787/spack,skosukhin/spack,EmreAtes/spack,lgarren/spack,tmerrick1/spack,EmreAtes/spack,iulian787/spack,skosukhin/spack,mfherbst/spack,TheTimmy/spack,iulian787/spack,LLNL/spack