template(): not overwrite existing file