make symlinking optional via "latest" param

Also fix some bugs while in here:
- error on moving symlink : missing import (errno)
- generate link name from compressed name, since extension isn't always
  .tar.gz