Fix shell_cmd/cmd processing and string interpolation
Add support for working_dir argument