Improve java install scripts a bit