Add getPackagePath to get the root path of specified package.