Fix InvalidCastException when opening new project/file dialog.

TypeScript template location were incorrectly defined using a
Directory node in the addin file when for SharpDevelop 5 it should be
a TemplateFile node.