maint: tidy up sanity check configuration.

* build-aux/sanity-cfg.mk: Escape '.' in regexps properly.
Add lib/posix/compat.lua to sc_error_message_uppercase.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>