creating the hooks dir if not exists