[build] Fix the bug which triggered constant rebuilds of MonoDevelop.Core

We should be doing dependency checking using version.config, not version.txt.
This fixes the constant rebuilds of MonoDevelop.Core (and all it's dependencies).

I also re-instated the generation of the BuildInfo and vcrevision files. They
were broken when the 'BeforeBuild' target was redeclared.