Changed init script to better handle tomcat deployments without a shutdown port