fix problems with pinentry-curses