Fixed Bug 499: Security issue in daemon-init.in, function check_config

Patched-by: Tómas Edwardsson