untar a file to a given directory