Bash: Set terminfo path if it's needed