fix jelford/git-hooks#1: Detect availability of -executable or fall back

I've not got a BSD setup I can test this on, but I think it should now safely fall back on systems that don't support `-executable` but do support `-perm +111`.