Fixing terminfo compile script.