fix failure to find package in case multiple archs of a package is in the cache