Interesting, what version of android are you using? Anyways, I updated this, and added a line to remove the tar file before trying to reinstall it again.