tests/ncurses_auto: set output file name in build rule.