Fix issue with removing .git folder in windows.