Fix hook: simpler grep, git to stderr