Add preupdate script
Build jar on first install only (or update)