minor changes to build_lm.pl