fix bin/build-distribution