Fix temporary directory for tests.