Fix cert upload problem in extension cmdlets

@hyonholee @v-didara