Fixed sudo usage, mktemp typo & tar-ing