cli: use vlc_dup2()