cmake: use $CMAKE_BUILD_TYPE instead of $CONFIGURATION as BUILD_DIRECTIVE

$CONFIGURATION does not seem to exist and Ninja will fail for nonexistent variables.