history: fix the check for an existing $HOME/.nano/ directory

This fixes https://savannah.gnu.org/bugs/?52339.
1 file changed