Fix capturing exit status to properly display libtar results

Error conditions were always showing successful in the TWRP GUI
making it much more difficult to determine if a backup or restore
was actually successful.
Merge "Fix capturing exit status to properly display libtar results" into twrp2.4