fix hook name acquisition when called by githooks command