You probably want to do both actually.  

Although I'm wondering if we should use ```which``` to determine the location of tomcat instead (this may be a case of over-engineering).