produce stdin for rvm_debug_stream to prevent missing stdout when it is used in pipes, fix #2110