Fixing detection of GTEST_DIR variable when defined with -DGTEST_DIR=...