Use `process.config` to determine build type

Assuming `Release` breaks on a debug build.