updated path escaping for shell command, using shellwords.