Fixes issues with deleting files and cleanup on windows.

Not in Java 6.  Java 7 nio will allow us to improve the filesystem provider in a number of ways, including access to partial readdir.