Revert "LPS-50259 No need to normalize path like freemarker did, since we redo all the logic of loading a template."

This reverts commit 5c7935397e3c52fa52375442039267b1c8eaf6eb.
LPS-49793 Portlets fail to persist on layout revisions when archive/restore portlet setup configuration is used
LPS-49793 SF