Fixes to make_distribution script