FOSS: Fixing Check version to work with multiple thrift compilers

Change-Id: Ia8a4e3ab7e2adbacfd9234a04f0646bb5765be56