HIVE-5740: Tar files should extract to the directory of the same name minus tar.gz (Brock Noland reviewed by Xuefu Zhang)

git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1538733 13f79535-47bb-0310-9956-ffa450edef68