fix file mode for windows