java: break up uninstall steps to avoid overflowing wpkg buffer