SetBucket sets the bucket in the environment to a local pail bucket
backed by a temporary directory.
If initDir is not empty, the contents of the directory with the given path are copied to the local bucket.
If an error is encountered it will fail the test.