JSON CDB: add support for out of source database file

When using out-of-source builds with CMake the compile_commands.json
file ends up in the out-of-source build directory. Add a facility to
specify out-of-source JSON Compilation Database file.