Handle readonly files on windows when calling rmtree.