fix sdist on Windows

A .git directory is read-only on Windows, so it can't be removed with default shutil.rmtree.