Fix to allow mono to run with sgen when installing mono with xcopy.

Code contributed under the MIT/X11 license.