fixed subshell command creation