Support tarfile to work with python2.6

Change-Id: If39ac9473742ed67a623b81716e8ece7fe98dc9f