split tomcat script into instance specific and global