Changed write function in local-fs to work in windows.