Make a little optimization and also do some cleaning work.
Fix commit bug,mainly for empty demoCA/newcerts folder