build: simplify ncurses checks: --with-regedit does not take a path list