Bulk upload behaves consistently during tests

Rather than monkey patching the default root directory for bulk
uploads in multiple places, we can set it according to the env during
initialisation. For consistency with attachment uploads, it's now
in tmp/test.