Partial fix for finding hook executables

This allows, at least, more executables to be picked up.

It doesn't pick up group-executable scripts and ignore xattr files but it
should be better than what was there before.

Closes #80