fix file mode (should be an octal number)