Fixed local path handling in template sync action (TUI-114)