several fixes

* fixed wrong order in the commands
* do shell script + 1 variable only