This should probably be using a real temporary directory.