Make tarfile use compatible with Python 2.6

tarfile on Python 2.6 does not have ``with`` support :(