Solve errors when generating archive with git-archive-all.