Use rd /s instead of shutil.rmtree on Windows in rm_rf

This hopefully fixes #861.