changed tomcat.erb from templates to files, fixed config.sh end of line issue
fixed config.sh issues on hostname and domain name