Fix path in unit search function.