Unity will try to locate the material in local Materials folder, i.e. in path modelFilePath/Materials.
For example: if model is AssetsModelMyModel.fbx, then it will try to locate the material in AssetsModelMaterials folder.
See Also: ModelImporter.materialSearch.