Fix jboss upgrade scripts