build: fix sdist on Windows

A .git directory is read-only on Windows, so it can't be removed with default shutil.rmtree.
update gitignore
test: fix process tests on Windows