Remove hard coded references to /tmp

So that the tests will run successfully in parallel.