Attempt to make the search.sh tests more self contained.  Previously
it would try and contact one of the default pkg repos, but we can't
assume that any build environment will have network access.
Eg. Jenkins certainly doesn't.