Move GlobalWorkDir logic to AddJob::doWork()
When adding files, we now change the working dir to GlobalWorkDir at the AddJob level.
This way is easier to restore the old working dir, and we also merge
some duplicated code between cliinterface and libarchiveplugin.
Differential Revision: D1369