fix path for snippets
fix build option for tern