Central config and clean up of pkg files.