Work around unlink() bug on MacOS X 10.5.6.