Allow check-cmd to check STDOUT also