OpenCytoPreprocessing.r : modified the code to get the common parent of the passed in XML files more efficiently and robustly

OpenCytoPreprocessing.js : made rootPath generation more robust