Adjusted logic in generate_tarball code to bypass duplicate questions