fix a few bugs
  * remove ondismisslistner
  * remove twrp.img or cwm.img if it exists