properly check for debug and verbose messages to suppress (bug #4294)