Fix test setup.

Even if ./tmp/ already exists, we might need mkdir ./tmp/empty_dir