osx unlink doesn't like -d