Checking the OS before issuing xcopy command

This will impact future feature of CI for mono