Update build to wait for tomcat start.