error in deploy.sh removing the tomcat work directory