Add TWRP Support

TWRP doesnt like to be put in chroot jail. Switch to exec. Some code optimizations and cleanup

Signed-off-by: rachit-rc <rachit.rc.rawat@gmail.com>