Replace $(Configuration) with $<CONFIGURATION>

Using `$(Configuration)`, which is only useful for msbuild/Visual Studio, breaks [ninja](http://martine.github.io/ninja/) builds. This is because `$` is an escape character. This PR replaces `$(Configuration)` with a `$<CONFIGURATION>` generator expression.