Support alpha and hexa paths.

terminfo directories could be only one letter if installed with
`ncurses-term` through aptitude.