Fix potential bug during the creation of tarball_to_do.txt