fix searching spack package hash with package versions
This fix improves searching spack package hash, when the package version is also provided.
There are two version eccodes
compiled by nvhpc@22.5, we need to specify the version of eccodes to get hash, root and dependencies etc.