try to fix file deletion on windows platforms