CLOUDSTACK-6926: removed hard coded jdk dirs and setting java home using readlink and dirname

Signed-off-by: Sebastien Goasguen <runseb@gmail.com>