bin/edit: make edit usable on remote edit where it can't telnet back

Signed-off-by: Bao Haojun <baohaojun@gmail.com>