Use qstrcmp to comapre C-strings. Re-add the case for output device, which was last in a rebase. Fixes f229e6c4