Add import for dotcloud/tar to replace std tar pkg

Thanks to @mhennings for the patch, all credit goes to him.

Fixes #1359

View previous PR #1426