getHookFiles: better errors, and add expects lib search path
For the ondev2 testsuite, I'll add the expect
command to the initramfs-extra. It links against a library that the current code doesn't find yet, and also the error message was misleading. Add patches to address this, see individual commits for details.