How to append and swap materials with the same name?
You should link materials and not append them in mutliple projects, by linking you have the benefit of only updating your master blend file or library and see the changes propagate in all blend files that use that material.  

see also : 
What is the differance between Linked and Appended data from external .blend files?