Only create source tarball after getting/building all input_files
When building a project we currently generate a source tarball from the git/hg repository, before starting getting/building its input_files. This means that the source tarball is taking space in the tmp directory while we are building the input_files. If we only generate the source tarball after we finish building all input_files, I think we can reduce the disk space needed for builds.