fix file deletion on windows platform