script for getting core module into dist_tree