Rebuild jar only when necessary