fixing prereq tomcat.war_deployed function