Replace some chmod command

replaces the chmod command that are not recognized by windows.