Fix bug introduced by pull request 14467 being merged (#14639)
Fix bug introduced by pull request 14467 being merged (#14639)

* Fix bug introduced by pull request 14467 being merged

* Only filter on platform and OS

iulian787/spack,iulian787/spack,LLNL/spack,LLNL/spack,LLNL/spack,LLNL/spack,iulian787/spack,iulian787/spack,LLNL/spack,iulian787/spack