Bug 963009 - [Gaia][Build] Test coverage

Using `statSync` since we are writing build script, sync version will be easier to maintain.