there are addon to help for the same name and different extension
check these out
Changing all materials by name at once
&&&
happy bl