Fixed bug on detecting VS installation.

Fixed bug on detecting VS installation.