Improving LM training.

 - Exit when the command fails.
 - Fixing stupid behavior of replace-words-with-classes that does not SHOUT when a file in its arguments does not exist.