updated ldeploy commants and added checking for JBOSS_HOME and CATALINA_HOME