Fix small bug in b5c6cea400e58ac8848db8aa2fefc695b0357b4e
where compiler temporary file would not be removed when
checking for ncurses.