change SWITCH_HOME environment variable to TREMA_HOME