fixed some issues with creation of tarballs