Monitor plugin: fix log path prepare: remove incorrect use of operator delete on the memory returned by strtok, use string class instead of strtok for string manipulations; do not set write permissions on all directories in the log path, except the leaf directory where it might be necessary; use QCUtils and cerr instead of perror to report errors.
Monitor plugin: fix log path prepare: remove incorrect use of operator delete on the memory returned by strtok, use string class instead of strtok for string manipulations; do not set write permissions on all directories in the log path, except the leaf directory where it might be necessary; use QCUtils and cerr instead of perror to report errors.

quantcast/qfs,quantcast/qfs,quantcast/qfs,quantcast/qfs,quantcast/qfs,quantcast/qfs,quantcast/qfs,quantcast/qfs