added validate_ntp_conf function to work-around ntpd -qg bug