Fixed "stdin: not in gzip format" when uncompressing archive

Switched from PHP's "fetch_file_contents()" to wget download, added wget existance check, removed some now useless code.