Fix return of untar function destination directory

There is no guarantee that tar will provide a list of files it's untarring in order
so we can't rely on th first file output in verbose mode to be the destination directory.
In this case we'll pipe the output to "sort" so that we can get a nice ordered list where the first
file output will always be the destination directory