dialog: Override ncurses config script

Without the override, systemwide ncurses6-config can be found instead
of ncurses5-config from staging.