Fixes the bug in spack configure spotted in #6833 (#6837)
Fixes the bug in spack configure spotted in #6833 (#6837)


matthiasdiener/spack,krafczyk/spack,EmreAtes/spack,krafczyk/spack,matthiasdiener/spack,matthiasdiener/spack,matthiasdiener/spack,krafczyk/spack,mfherbst/spack,mfherbst/spack,tmerrick1/spack,iulian787/spack,mfherbst/spack,krafczyk/spack,tmerrick1/spack,tmerrick1/spack,EmreAtes/spack,mfherbst/spack,LLNL/spack,matthiasdiener/spack,iulian787/spack,krafczyk/spack,tmerrick1/spack,LLNL/spack,tmerrick1/spack,iulian787/spack,EmreAtes/spack,LLNL/spack,iulian787/spack,mfherbst/spack,iulian787/spack,EmreAtes/spack,EmreAtes/spack,LLNL/spack,LLNL/spack