Use TERMINAL env variable to decide what to spawn.