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