Updated build script to automatically build jar.