moved user hook function poost_tarball to the function end

Doing this enables the user to take further actions as uploading the
tarball after generation and copying to the project directory. A removal
of the generated tarball is now possible, too.