fixed create_tarinfo() to behave in a more "pythonic" way