Fix intallation process for working in emacs batch mode.