added pipe support to MVM_file_get_stdstream