(maint) Fix fact-node globbing tests

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

I've also put in a test for keys with blank strings, to make sure this change
doesn't affect that case as well.

Signed-off-by: Ken Barber <ken@bob.sh>
Merge pull request #1032 from kbarber/maint/master/fix-globbing-tests

(maint) Fix fact-node globbing tests