changed msbuild and mdtool to select command based on build platform rather than target platform