Add auto-mode-alist support for tern files.