Fix wrong directory name when install snippets.