Improved tarball building to fit in with the autodocs refactoring.