SmartGitHg: don't assume we're on OpenJDK and replace JDK dependency
with JRE.

Closes #4081.

Signed-off-by: Mateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>