fixed sdk check in cli generator