Refactor FTE template exclusion

introduce a separate function to split FTE templates to a different list
Better handling of FTE exclusion during training (no reason to every include
fte templates in calls to train).
Remove File::failed, instead use direct access to fte.