fixed issue with tar.gz not being deleted