Fixes MSBuild behavior difference with ToolPath.

https://bugzilla.xamarin.com/show_bug.cgi?id=22981

I don't have an environment setup to verify this fix, but I believe it should work.