Replace ncurses fix with easier solution (regex pattern instead of checking for two libs).