Fix postinst script for Debian's broken systemd helper.
Some Java tuning.