[core] fix translator to load different dir for the same namespace