pub fn ensure_hooks_dir(root: &Path) -> Result<PathBuf>
Write the hooks under root (what is already right is left alone) and return their directory.
root