Fixed a bug due to incorrect use of head, causing the archive to be only
partially extracted.