Made modifications to allow CATALINA_HOME to be dynamically changed.
Kept all default behaviors the same, but extended the functionality.