Dev: tomcat: run through all validations instead of bailing out immediately.

This commit should be fold into this before merging to the main stream:
https://github.com/kskmori/resource-agents/commit/f647630927d69a60781de92832b23e620303115a
Dev: tomcat: code simplification in removing bashism

This commit should be fold into this before merging to the main stream:
https://github.com/kskmori/resource-agents/commit/e17ce908b3829e4e5996ee9e1fbd58a3e4eac8ed
Dev: tomcat: preserve the indentation in the original file

This commit should be fold into this before merging to the main stream:
https://github.com/kskmori/resource-agents/commit/d4949eb7563e8d957cd843544c9c640fc4d42e2c