Clean up distribution code in build script.
Fix jar names. Still need to have projects copy jars transitively.