script: Fix check_symbols() with gcov build