tar.gz support and branches handling in package name resolution.