main/ncurses: fix handling of globs and quote paths

Fix the handling of terminology* and st-* globs. They will be expanded
with $(find ...) and may return a list of files, so we need to loop over
the result.

Also do minor cleanups like quote variables with paths and keep the
/usr/lib/terminfo symlink.

fixes commit 95aa0e72 (main/ncurses: upgrade to 6.2_p20200314).
7 jobs for !7221 with ncurses-fix-split-terminfo in 2 minutes and 17 seconds
detached
Status Job ID Name Coverage
  Lint
passed #109749
docker-alpine x86_64
lint

00:00:27

 
  Build
passed #109754
docker-alpine ci-build aarch64
build-aarch64

00:01:49

passed #109755
docker-alpine ci-build armv7
build-armv7

00:01:38

passed #109753
docker-alpine ci-build ppc64le
build-ppc64le

00:01:46

passed #109752
docker-alpine ci-build s390x
build-s390x

00:01:18

passed #109751
docker-alpine ci-build x86
build-x86

00:01:00

passed #109750
docker-alpine ci-build x86_64
build-x86_64

00:01:05