Some clean-up to tcpwrapper templates

This basically removes unneccessary or complicated tests like `abcd is defined and abcd ...`. 
I assume, this kind of clean-up can be done to most of the other templates, too.