run-command: prepare command before forking