Revert moving starting script to settings.
Fix CME in terminal (IDEA-125398).

(cherry picked from commit dc5157d8adca12894692bcee960facc9f09fc92c)