added check for gh and bb required environment variables