[travis] refactor run-tomcat-and-tests bash-script