Bugfixes in detection of template files: dot-file exclusion and hard filter to include valid file types only. Fixed a case of an inaccessible (hidden, expired) root TS template potentially being selected.