Added some checks to avoid downloading and installation when jboss is already installed