Change comparison to exactly equals when checking environment