Bugfix for dists

This fixes the following issues:

 * set correct distribution type (tar or zip)
   * e.g. when your local satis overrides that of the upstream (GitHub)
   * dist urls were ignored when previously no dist was 'provided' (e.g. with SVN)
 * set the correct dist reference

Resolves: #57

Thanks to @njam for reporting!