Added modular scripts and fixed ltomcatsetup.sh bugs