update mvn script to run on Mac OS X

* fix the way to find JAVA_HOME on Darwin (Mac OS X)
  to be able to use JDK 1.7
Fix the wsref test failures in jbossws testsuite
Minor update to change the key name
Fix ServiceRefTestCase failure