more boolean comparison fixes

I seem to have overseen some. here are more. Also, I generalized the "file" statements in the vhost.pp