Changes to support renameTo operation in Windows.