fix problems with var CATALINA_HOME in unix and windows