Fixed .tar.gz download bug, added .tgz download support.