ulogd: fixed check to determine what database output plugin can be enabled

Of course the variable $tuplepkg needs to be used but besides that the former
check was also wrong because there is no "postgres" package in OpenSDE!

Thanks to Karasz for spotting the issue! Highly specialized pattern matching
still seems to work! ;)