custom_hook: only execute hook if file is executable
custom_hook: only execute hook if file is executable

This commit fixes an issue where an existing but unexecutable hook would
cause an uncaught execption.

gitlabhq/gitlab-shell,gitlabhq/gitlab-shell,gitlabhq/gitlab-shell