Add unit test for BuildPlatform.
Improve logging output when MSBuild fails.
Check output directory exists and is a directory before returning it.
Add integration test for configuration specified output directory.