test: Make sure loader runs use tmp_path fixture
Without this, tests are leaving leftovers in /tmp after running tests. This commit fixes that by using tmp_path as root directory which is cleaned up afterwards by pytest.
Related to #3719
Test Plan
tox
Migrated from D6632 (view on Phabricator)