Fixed the problem with files with the same name in different directories