fix for #33 Doesn't handle cases where .git/hooks is not present