IDEA-56096 Allow to create file templates with extension contains dot [CR-IC-3923]
(cherry picked from commit c1728ca)