Replaced create_tarball method with better implementation.