fix sdist on Windows

A .git directory is read-only on Windows, so it can't be removed with default shutil.rmtree.
can you make this an inner function, inside rmtree?