Skip exec on cmds. Also use xmemstrdup where appropriate.

3 files changed