Add untar method to gearman client

Jenkins sends log files tarred and bz2 compressed, while gearman worker assumes
the log files are not tarred at all and gz compressed only.
in lines 91-92 use `writelines()` method instead of the loop.