1. change cPickle protocol version to -1;
2. instead of saving in global g_dcPaths, serialize to file once path
extraction is finished;
3. add ensurePathExist function;