bug #4080 Overwrite existing file not obeyed