Renaming sources and templates to avoid clashes