(maint) Fix fact-node globbing tests

The regular expression I provided for the glob replace wasn't sufficient for
PostgreSQL to work. This patch ammends it to be so.

In fear us not picking up keys that are blank strings, I've also put in a test
for that.

Signed-off-by: Ken Barber <ken@bob.sh>