improve detection of failure to build kaldi