PortalKit: fix bug that war file clean feature only works well when tomcat is online