Make the 'last resort' actually work.

Without this patch, terminfo entries were not read from the
corresponding file.  For reference, see [1] and [2].

[1]: http://marc.info/?l=openbsd-tech&m=131728639327606&w=2
[2]: http://marc.info/?l=openbsd-tech&m=139576868725531&w=2

Tested on OpenBSD.