Escape arg/file/cmd strings in JSON.
mkdir the root directory if it does not exist
Merge remote-tracking branch 'ccl/pull/567/head'

* ccl/pull/567/head:
  mkdir the root directory if it does not exist
  Escape arg/file/cmd strings in JSON.