edfs_cli: print error to stderr
redesigned output write funs