Add support for tomcat8 (MODCLUSTER-436).

Basically the fix was easy copy + fix the tomcat7 logic.