Fixed issue with space being added at the end that prevented automatic syntax highlighting and caused other issues (e.g. building with Ctrl+B). Made the installer smarter.