Check the root rootDir and commonResPath before running