updated so works for bash and sh or something like that
updated JRE dep