Ignore path case on Windows when searching for existing editors.
Make sure write() is always called.