update files permission in shell scripts