pathcmd_name
free(command->pathcmd_name);
command->pathcmd_name = strdup(pathtok);
if (command->pathcmd_name == NULL)
err = ptree_get_node_by_path(command->pathcmd_name, nodeh);