improved rake script that creates corepackages.