Use shlex for exec string cmd, added integration testcase.