Update build.psm1 to use the same MSBuild checking logic
Update build.psm1 to use the same MSBuild checking logic

daxian-dbw/PowerShell,kmosher/PowerShell,jsoref/PowerShell,KarolKaczmarek/PowerShell,PaulHigin/PowerShell,kmosher/PowerShell,daxian-dbw/PowerShell,bingbing8/PowerShell,KarolKaczmarek/PowerShell,KarolKaczmarek/PowerShell,bingbing8/PowerShell,PaulHigin/PowerShell,TravisEz13/PowerShell,bmanikm/PowerShell,jsoref/PowerShell,jsoref/PowerShell,TravisEz13/PowerShell,jsoref/PowerShell,bingbing8/PowerShell,JamesWTruher/PowerShell-1,bingbing8/PowerShell,daxian-dbw/PowerShell,KarolKaczmarek/PowerShell,jsoref/PowerShell,kmosher/PowerShell,JamesWTruher/PowerShell-1,PaulHigin/PowerShell,bmanikm/PowerShell,TravisEz13/PowerShell,JamesWTruher/PowerShell-1,bmanikm/PowerShell,daxian-dbw/PowerShell,kmosher/PowerShell,kmosher/PowerShell,bmanikm/PowerShell,TravisEz13/PowerShell,bmanikm/PowerShell,KarolKaczmarek/PowerShell,JamesWTruher/PowerShell-1,bingbing8/PowerShell,PaulHigin/PowerShell