creates package in output file and deletes extracted folder correctly