qszhuan/edfeng : change file mode to 'w' when rotating