fix permission copy error for win os