Locate killjava script relative to $HOME

The application directory path is not the same at droplet execution
time as it is when the buildpack runs, so it is necessary to use
$HOME at droplet execution time.
Tidy up killjava script

Format messages more cleanly and ensure they are flushed
synchronously. # # It looks like you may be committing a cherry-pick.