Fixes issue with tar.gz file not being removed