Fix tarfile usage in python2.6.

Change-Id: Id3b40a095b3756d0ec7657832098115bc81711ac