Fixed search algo for gtest in cmake script