cmdutils: add support for programs in check_stream_specifier()