Replace shellcmd call with copy_file call.