Fix try_remove on a directory in Windows