Fix bug where "ocaml_findlib" and "shells" tasks were not preserving the ownership and permissions of existing system files, e.g., /etc/shells, when updating their contents.