Check git hooks dir exists before linking hooks