Merge pull request #1462 from abderrahim/tar-permissions

tar.py: fix permissions in tarballs