Fix #1214: attempt to load ./config.json

AFAICT there are no tests for the configuration loading right now, but here's the fix itself for #1214. Let me know if I'm missing existing tests of this functionality and I'll happily add proper tests for loading `$PWD/config.json`.