Single JVM installation script supports for profiles

Signed-off-by: M. Isuru Tharanga Chrishantha Perera <isuru@apache.org>