Correct file mode after creating error log for 0664