Fix empty tar creation