Fixed index creation when doesnt exist. Minor fixes in the metarpm and s...

...etupmachine script.