[#2] fixed rootPath, and get actual version from package.json