Avoid leaving large artifacts around in store migration tests.
Deprecate direct use of TargetDirectory, which pollutes the filesystem and can create unnecessary large artifacts.
Merge pull request #3044 from benbc/2.2-test-artifact-cleanup

2.2 test artifact cleanup