JBOSS-18: added fix for java7
JBOSS-18: updated jboss deployer script