fixed cli-installer

fixed a missing define, automatically create configs and re-factored installer for better readability