changed isTomcatReady, avoids error return code