Revert "init: use read_file and write_file to implement do_copy builtin" am: 281531bdcb
am: ee659505f0

Change-Id: I2b3fc1db6560c1697f1154d69671badb7ea2abb3