Revert "enahnced error handling in build.ps1"

This reverts commit 1a7d70b10f0c6317e841aa266309d428e38d4d10.