Add checking of syncing and envsetup

This commit adds support for reporting syncing and envsetup.sh failures

Change-Id: I42e4274ac0317a7e536ee7d7ee561c27a6bc8411