added corect exit code to build.ps1