Fix cert upload problem in extension cmdlets