A small fixes of init_cmd and locally launched commands

Merged Martin Šurkovský requested to merge fixes into main

Merge request reports