Use `process.config` to determine build type

Assuming `Release` breaks on a debug build.
Merge pull request #61 from mmalecki/use-process.config

Use `process.config` to determine build type