Fix "Arguments to path.join must be strings" in new versions of node

I was getting an error "Arguments to path.join must be strings" (with no stack trace; this was the entire output) on running `buster test`.  This patch fixes the problem.